package com.xian.util;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.xian.domain.Greens;
public class PageUtil {
public   void Pages(int page,int count, Map<String, Object> request ) {
	int countpage = 1;
	if(page!=0)
	{
		countpage = page;
	}

	int pages ;
	
	if(count%Greens.PANGESIZE==0)
	{
		pages = count/Greens.PANGESIZE;
	}
	else
	{
		pages = count/Greens.PANGESIZE+1;
	}
	
	request.put("count", count);
	request.put("countpage", countpage);
	request.put("pages", pages);
}
}
